package com.zenith.zongheng.demo.converter;

import com.zenith.zongheng.demo.domain.dto.LeaveProcessSaveDTO;
import com.zenith.zongheng.demo.domain.dto.LeaveProcessDTO;
import com.zenith.zongheng.demo.domain.entity.LeaveProcess;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author tangzx
 * @since 2021-12-28
 */
@Mapper(componentModel = "spring")
@Component
public interface LeaveProcessConverter {

    /**
     * dto to object
     * @param dto LeaveFileSaveDTO
     * @return LeaveFile entity
     */
    @Mappings({})
    LeaveProcess dto2LeaveProcess(LeaveProcessDTO dto);

    /**
     * dto to object
     * @param dto LeaveFileSaveDTO
     * @return LeaveFile entity
     */
    @Mappings({})
    LeaveProcess dto2LeaveProcess(LeaveProcessSaveDTO dto);
}
